package cn.bellychang.command.demo01;

import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

/**
 * @author ChangLiang
 * @date 2020/4/14
 */
public class App {

    
    @Test
    @DisplayName("test smart control")
    public void test(){

        SmartControl smartControl = new SmartControl();

        // door on
        smartControl.onButtonPressed(0);
        // light on
        smartControl.onButtonPressed(1);
    }
}
